<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Site/info')}>"><{:L('_menu_system')}></a></li>
      	<li class="active"><{:L('_menu_site_setting')}></li>
    </ol>


	<form id="ajaxForm" action="<{:U('Site/insert')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label">Site name</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				id="site_name"
				name="site_name"
				data-rule-required="true"
				value="<{:C('site_name')}>"
				>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">Site title</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_title"
				id="site_title"
				data-rule-required="true"
				value="<{:C('site_title')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="site_url">Domain</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_url"
				id="site_url"
				data-rule-required="true"
				data-rule-url="true"
				value="<{:C('site_url')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="image_exts">LOGO</label>
			<div class="col-md-5">
				<img class="thumbPic" id="site_logo_src" src="<?php if(C('site_logo')){echo C('site_logo');}else{ echo STATICS.'/image/image.jpg';} ?>" />
				<input type="hidden" name="site_logo" id="site_logo" value="<{:C('site_logo')}>" />
				<p class="pic-btn"><input type="button" value="Upload" class="btn btn-default btn-sm" onclick="uploadImage( '<{:U('Admin/Upload/singleImage')}>' , 'site_logo')"/> <input type="button" value="Delete" class="btn btn-default btn-sm" onclick="delImage('site_logo')"/></p>
			</div>
		</div>		

		<div class="form-group">
			<label class="col-md-1 control-label" for="site_tel">Phone</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_tel"
				id="site_tel"
				value="<{:C('site_tel')}>"
				/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="site_email">Email</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_email"
				id="site_email"
				data-rule-email="true"
				value="<{:C('site_email')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="site_email">QQ</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_qq"
				id="site_qq"
				value="<{:C('site_qq')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="icp">WeChat</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_weixin"
				id="site_weixin"
				value="<{:C('site_weixin')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="icp">WhatsApp</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_whatsapp"
				id="site_whatsapp"
				value="<{:C('site_whatsapp')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="site_address">Address</label>
			<div class="col-md-5">
				<input type="text"
				class="form-control"
				name="site_address"
				id="site_address"
				class="span5"
				value="<{:C('site_address')}>"
				/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="site_keyword">Keywords</label>
			<div class="col-md-5">
				<textarea name="site_keyword" class="form-control areatext" id="site_keyword"><{:C('site_keyword')}></textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="site_content">Description</label>
			<div class="col-md-5">
				<textarea name="site_content" id="site_content" class="form-control areatext"><{:C('site_content')}></textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="copyright">Copyright</label>
			<div class="col-md-5">
				<textarea name="copyright" id="copyright" class="form-control areatext"><{:C('copyright')}></textarea>
			</div>
		</div>
		<div class="form-group">
			<div class="col-md-5 col-sm-offset-1">
				<button type="submit" class="btn btn-info"><i class="icon-edit icon-white"></i> <{:L('_public_update')}></button>
			</div>
		</div>
		<input type="hidden" name="files" value="info.php" />
	</form>

<input type="hidden" id="menu_action" value="sys" />
